#include <ast/ast.h>

namespace ast {
  void NodeFuncDefArgs::dot_string(std::string & str) {
    str = std::string("FuncDefArgs");
    str += R"(\n)";
    str += "iden and type:";
    for(unsigned long i = 0; i < this->iden_list.size(); ++i) {
      str += std::string(magic_enum::enum_name(this->type_list.at(i)));
      str += " ";
      str += this->iden_list.at(i);
      str += ",";
    }
    str.pop_back();
  }

  void NodeFuncDefArgs::dot_accept(AstDot & ast_dot) {
    ast_dot.visit(*this);
  }

  void NodeFuncDefArgs::accept(ir::Visitor & visitor) {
    visitor.visit(*this);
  }
}
